package com.ruoyi.system.service;

import com.ruoyi.system.domain.DyMemberCode;
import com.ruoyi.system.domain.bo.DyAnchorBo;
import com.ruoyi.system.domain.vo.DyMemberCodeVo;
import com.ruoyi.system.domain.bo.DyMemberCodeBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 会员码Service接口
 *
 * @author ruoyi
 * @date 2024-08-01
 */
public interface IDyMemberCodeService {

    /**
     * 查询会员码
     */
    DyMemberCodeVo queryById(Long id);

    /**
     * 查询会员码列表
     */
    TableDataInfo<DyMemberCodeVo> queryPageList(DyMemberCodeBo bo, PageQuery pageQuery);

    /**
     * 查询会员码列表
     */
    List<DyMemberCodeVo> queryList(DyMemberCodeBo bo);

    /**
     * 新增会员码
     */
    Boolean insertByBo(DyMemberCodeBo bo);

    /**
     * 修改会员码
     */
    Boolean updateByBo(DyMemberCodeBo bo);

    /**
     * 校验并批量删除会员码信息
     */
    Boolean deleteWithValidByIds(List<Long> ids, Boolean isValid);

    DyMemberCodeBo getMemberCodeInfo(DyMemberCodeBo bo);

    DyMemberCode addMemberCode(DyMemberCodeBo bo);

//    int updMemberCode(DyMemberCodeBo bo);

    int bindMemberCode(DyMemberCodeBo bo);
}
